<template>
  <div>
    <h1>你好， <span style="color: red" v-countRun="2022"></span></h1>
    <p>欢迎使用EvCli，大部分配置已配置完成，请尽情使用。</p>
    <el-button type="primary" @click="openEvMesage">打开窗口</el-button>
    <Demo></Demo>
  </div>
</template>

<script>
import { getRoles } from "@/api/role";
export default {
  name: "Home",
  data() {
    return {};
  },
  mounted() {
    // this.getData();
    this.$evmessage()
  },
  methods: {
    async getData() {
      const result = await getRoles();
      console.log(result);
    },
    openEvMesage(){
      this.$evmessage.error({
        content:'危险危险危险',
        duration:2000,
      })
    }
  },
};
</script>

<style lang="less" scoped></style>
